<?php

namespace yifang;

define('YIFANG_FILE', basename(__FILE__,".php"));
define('YIFANG_ROOT', str_replace("\\", '/', dirname(__FILE__,2)));
define('YIFANG_PATH', YIFANG_ROOT."/yifang");
define('YIFANG_APP', YIFANG_ROOT."/app");
define('YIFANG_CUSTOM', YIFANG_ROOT."/custom");
define('YIFANG_VERSION', YIFANG_ROOT."/version");
define('YIFANG_PUBLIC', YIFANG_ROOT."/public");

//加载加载函数
require __DIR__ . "/../yifang/Loader.php";

// 执行应用并响应
$http = (new App())->http;
$response = $http->run();
$response->send();
$http->end($response);


